import React, {Component} from 'react';
import '../../component/Questionnaire.css';

/**
 * 课题组2 资源消耗
 * @autuhor zm
 */
export default class ResultTable2 extends Component {


    render() {
        //定义input的value数组
        const data = this.props.group1Data;

        const hiddenData = "*****";//显示隐藏信息的占位符
        return (
            <div>
                <div className="first">
                    <h2 style={{textAlign: 'center'}}>***资源消耗数据</h2><br/>
                    <table className="table5">

                        <th>ID：</th>
                        <td style={{width: '12.5%'}}>

                            {
                                 data.projectId
                            }

                        </td>

                        <th>企业名称：</th>
                        <td style={{width: '12.5%'}}>
                            {
                                data.enterpriseName
                            }

                        </td>

                        <th>国家：</th>
                        <td style={{width: '12.5%'}}>
                           { data.country}
                        </td>

                        <th>省：</th>
                        <td style={{width: '12.5%'}}>
                            { data.province}
                        </td>


                    </table>
                    <table className="table6">
                        <tr>
                            <th>资源归类编码：</th>
                            <td style={{width: '12.5%'}}>
                                { data.resourceId}
                            </td>

                            <th>生产线编号：</th>
                            <td style={{width: '12.5%'}}>
                                { data.productionLine}
                            </td>

                            <th>熟料设计产能：</th>
                            <td style={{width: '12.5%'}}>
                                { data.designProductionCapacity}
                            </td>
                        </tr>
                    </table>
                </div>

                <div className="second">
                    <table border="3" className="table1">
                        <tr>
                            <th rowSpan='4' style={{width: '2%'}}>基<br/>本<br/>信<br/>息</th>
                            <th rowSpan='2' style={{width: '10%'}}>信息</th>
                            <td>保存单位</td>
                            <td>资源提供者</td>
                            <td>资源提供时间</td>
                            <td>共享方式</td>
                            <td>获取途径</td>
                            <td>联系人</td>
                        </tr>
                        <tr>
                            <td>
                                { data.saveDepartment}
                            </td>
                            <td>
                                { data.resourceProvide}
                            </td>
                            <td>
                                { data.resourceProvideTime}
                            </td>
                            <td>
                                { data.sharingMode}
                            </td>
                            <td>
                                { data.accessWay}
                            </td>
                            <td rowSpan="3">
                                { data.linkman}
                            </td>
                        </tr>

                        <tr>
                            <th rowSpan='2' style={{width: '10%'}}>信息</th>
                            <td>
                                单位
                            </td>
                            <td>
                                地址
                            </td>
                            <td>
                                邮编
                            </td>
                            <td>
                                电话
                            </td>
                            <td style = {{width: '20%'}}>
                                E-mail
                            </td>
                        </tr>

                        <tr>
                            <td>
                                { data.department}
                            </td>
                            <td>
                                { data.address}
                            </td>
                            <td>
                                { data.postalCode}
                            </td>
                            <td>
                                { data.phone}
                            </td>
                            <td>
                                { data.email}
                            </td>
                        </tr>

                    </table>
                    <table border="3" className="table1">
                        <tr>
                            <th rowSpan='3' style={{width: '10%'}}>主要原<br/>辅材料<br/>用量</th>
                            <th>项目</th>
                            <th>石灰质原料</th>
                            <th>硅质原料</th>
                            <th>铁质原料</th>
                            <th>石膏</th>
                            <th>粉煤灰</th>
                            <th>矿渣</th>
                            <th rowSpan='3'>水泥产量</th>
                            <th>PO42.5</th>
                            <th>PC42.5</th>
                        </tr>
                        <tr>
                            <th>单位</th>
                            <th>万吨</th>
                            <th>万吨</th>
                            <th>万吨</th>
                            <th>万吨</th>
                            <th>万吨</th>
                            <th>万吨</th>
                            <th>万吨</th>
                            <th>万吨</th>
                        </tr>

                        <tr>
                            <th>数值</th>
                            <td>
                                {data.shihuizhi_yl}
                            </td>
                            <td>
                                {data.guizhi_yl}
                            </td>
                            <td>
                                {data.tiezhi_yl}
                            </td>
                            <td>
                                {data.shigao}
                            </td>
                            <td>
                                {data.fenmeihui}
                            </td>
                            <td>
                                {data.kuangzha}
                            </td>
                            <td>
                                {data.po42_5}
                            </td>
                            <td>
                                {data.pc42_5}
                            </td>
                        </tr>
                    </table>
                    <table border="3" className="table2">
                        <tr>
                            <th rowSpan='3'>钙质原料化学成分</th>
                            <th>项目</th>
                            <th>SiO2</th>
                            <th>Al2O3</th>
                            <th>Fe2O3</th>
                            <th>CaO</th>
                            <th>MgO</th>
                            <th>LOSS</th>
                            <th rowSpan='3'>硅质原料化学成分</th>
                            <th>SiO2</th>
                            <th>Al2O3</th>
                            <th>Fe2O3</th>
                            <th>CaO</th>
                            <th>MgO</th>
                            <th>LOSS</th>
                        </tr>
                        <tr>
                            <th>单位</th>
                            <td>%</td>
                            <td>%</td>
                            <td>%</td>
                            <td>%</td>
                            <td>%</td>
                            <td>%</td>
                            <td>%</td>
                            <td>%</td>
                            <td>%</td>
                            <td>%</td>
                            <td>%</td>
                            <td>%</td>
                        </tr>
                        <tr>
                            <th>数值</th>
                            <td>
                                {data.gaizhi_yl_SiO2}
                            </td>
                            <td>
                                {data.gaizhi_yl_Al2O3}
                            </td>
                            <td>
                                {data.gaizhi_yl_Fe2O3}
                            </td>
                            <td>
                                {data.gaizhi_yl_CaO}
                            </td>
                            <td>
                                {data.gaizhi_yl_MgO}
                            </td>
                            <td>
                                {data.gaizhi_yl_LOSS}
                            </td>
                            <td>
                                {data.guizhi_yl_SiO2}
                            </td>
                            <td>
                                {data.guizhi_yl_Al2O3}
                            </td>
                            <td>
                                {data.guizhi_yl_Fe2O3}
                            </td>
                            <td>
                                {data.guizhi_yl_CaO}
                            </td>
                            <td>
                                {data.guizhi_yl_MgO}
                            </td>
                            <td>
                                {data.guizhi_yl_LOSS}
                            </td>

                        </tr>
                    </table>
                    <table border="3" className="table3">
                        <tr>
                            <th rowSpan='3'>铁质原料化学成分</th>
                            <th>项目</th>
                            <th>SiO2</th>
                            <th>Al2O3</th>
                            <th>Fe2O3</th>
                            <th>CaO</th>
                            <th>MgO</th>
                            <th>LOSS</th>
                            <th rowSpan='3'>熟料强度</th>
                            <th>3d抗折</th>
                            <th>28d抗折</th>
                            <th>3d抗压</th>
                            <th>28d抗压</th>
                        </tr>
                        <tr>
                            <th>单位</th>
                            <th>%</th>
                            <th>%</th>
                            <th>%</th>
                            <th>%</th>
                            <th>%</th>
                            <th>%</th>
                            <th>MPa</th>
                            <th>MPa</th>
                            <th>MPa</th>
                            <th>MPa</th>
                        </tr>
                        <tr>
                            <th>数值</th>
                            <td>
                                {data.tiezhi_yl_SiO2}
                            </td>
                            <td>
                                {data.tiezhi_yl_Al2O3}
                            </td>
                            <td>
                                {data.tiezhi_yl_Fe2O3}
                            </td>
                            <td>
                                {data.tiezhi_yl_CaO}
                            </td>
                            <td>
                                {data.tiezhi_yl_MgO}
                            </td>
                            <td>
                                {data.tiezhi_yl_LOSS}
                            </td>
                            <td>
                                {data._3dkz}
                            </td>
                            <td>
                                {data._28kz}
                            </td>
                            <td>
                                {data._3dky}
                            </td>
                            <td>
                                {data._28dky}
                            </td>
                        </tr>
                    </table>
                    <table border="3" className="table3">
                        <tr>
                            <th rowSpan='3'>熟料化学成分</th>
                            <th>项目</th>
                            <th>SiO2</th>
                            <th>Al2O3</th>
                            <th>Fe2O3</th>
                            <th>CaO</th>
                            <th>MgO</th>
                            <th>SO3</th>
                            <th>Na2O</th>
                            <th>K2O</th>
                            <th>Cl-</th>
                            <th>LOSS</th>
                            <th>f-CaO</th>
                        </tr>
                        <tr>
                            <th>单位</th>
                            <th>%</th>
                            <th>%</th>
                            <th>%</th>
                            <th>%</th>
                            <th>%</th>
                            <th>%</th>
                            <th>%</th>
                            <th>%</th>
                            <th>%</th>
                            <th>%</th>
                            <th>%</th>
                        </tr>
                        <tr>
                            <th>数值</th>
                            <td>
                                {data.shouliao_SiO2}
                            </td>
                            <td>
                                {data.shouliao_Al2O3}
                            </td>
                            <td>
                                {data.shouliao_Fe2O3}
                            </td>
                            <td>
                                {data.shouliao_CaO}
                            </td>
                            <td>
                                {data.shouliao_MgO}
                            </td>
                            <td>
                                {data.shouliao_SO3}
                            </td>
                            <td>
                                {data.shouliao_Na2O}
                            </td>
                            <td>
                                {data.shouliao_K2O}
                            </td>
                            <td>
                                {data.shouliao_Cl}
                            </td>
                            <td>
                                {data.shouliao_LOSS}
                            </td>
                            <td>
                                {data.shouliao_f_CaO}
                            </td>
                        </tr>
                    </table>
                    <table border="3" className="table3">
                        <tr>
                            <th rowSpan='3'>原料、熟料及水泥放射性指标</th>
                            <th>项目</th>
                            <th>石灰石内照指数</th>
                            <th>石灰石外照指数</th>
                            <th>砂岩内照指数</th>
                            <th>砂岩外照指数</th>
                            <th>矿渣内照指数</th>
                            <th>矿渣外照指数</th>
                            <th>粉煤灰内照指数</th>
                            <th>粉煤灰外照指数</th>
                            <th>转炉渣内照指数</th>
                            <th>转炉渣外照指数</th>
                            <th>熟料内照指数</th>
                            <th>熟料外照指数</th>
                            <th>水泥1内照指数</th>
                            <th>水泥1外照指数</th>
                            <th>水泥2内照指数</th>
                            <th>水泥2外照指数</th>
                        </tr>
                        <tr>
                            <th>单位</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                            <th>{''}</th>
                        </tr>
                        <tr>
                            <th>数值</th>
                            <td>
                                {data.shihuishi_nzzs}
                            </td>
                            <td>
                                {data.shihuishi_wzzs}
                            </td>
                            <td>
                                {data.shayan_nzzs}
                            </td>
                            <td>
                                {data.shayan_wzzs}
                            </td>
                            <td>
                                {data.kuangzha_nzzs}
                            </td>
                            <td>
                                {data.kuangzha_wzzs}
                            </td>
                            <td>
                                {data.fenmeihui_nzzs}
                            </td>
                            <td>
                                {data.fenmeihui_wzzs}
                            </td>
                            <td>
                                {data.zhuanluzha_nzzs}
                            </td>
                            <td>
                                {data.zhuanluzha_wzzs}
                            </td>
                            <td>
                                {data.shouliao_nzzs}
                            </td>
                            <td>
                                {data.shouliao_wzzs}
                            </td>
                            <td>
                                {data.shuini1_nzzs}
                            </td>
                            <td>
                                {data.shuini1_wzzs}
                            </td>
                            <td>
                                {data.shuini2_nzzs}
                            </td>
                            <td>
                                {data.shuini2_wzzs}
                            </td>

                        </tr>
                    </table>
                </div>
            </div>
        )
    }

}




